KTUGFaq

KTUG FAQ

"\catcode"À»(¸¦) Àüü ã¾Æº¸±â

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
A king's castle is his home.
FrontPage › \catcode

¿ª¸µÅ©¸¸ ã±â
¼­Ä¡ °á°ú ¹®¸Æ º¸±â
´ë¼Ò¹®ÀÚ ±¸º°
  • CatCode . . . . 11 matches
         === `\catcode` ¸í·É ===
         Æ¯Á¤ÇÑ ¹®ÀÚÀÇ CategoryCode¸¦ º¯°æÇÏ·Á¸é `\catcode`¸¦ ¾´´Ù. ¿¹ÄÁ´ë
         \catcode`\[=1
         \catcode`\]=2
         TeXÀº ±× ¼³°è»ó ¸ðµç ControlSequences°¡ ¿øÄ¢ÀûÀ¸·Î ¹®ÀÚ(letter = catcode 11)·Î ÀÌ·ç¾îÁöµµ·Ï ¾à¼ÓµÇ¾î ÀÖ´Ù. ±×·±µ¥ LaTeXÀÇ ¼³°èÀÚµéÀº @¹®ÀÚ(at-¹®ÀÚ)µµ ControlSequences¿¡¼­ »ç¿ëÇÏ°í ½Í¾îÇß´Ù.
         @¹®ÀÚ´Â ¿ø·¡ ±âŸ¹®ÀÚ(other characters = catcode 12)¿¡ ÇØ´çÇÏ´Â °ÍÀÌ´Ù. ±×·¯¹Ç·Î ±× ÀÚü·Î´Â ControlSequences¿¡ »ç¿ëµÉ ¼ö ¾ø´Ù. ÀÌ ¹®ÀÚ¿¡ CategoryCode 11À» ÇÒ´çÇÏ¿© ¸¶Ä¡ ¹®ÀÚ(letter)ÀÎ °Íó·³ Ãë±ÞÇ϶ó´Â ¸í·ÉÀÌ `\makeatletter`ÀÌ´Ù. `\makeatletter` ¸í·ÉÀ» Áö½ÃÇÑ ÀÌÈķδ @¹®ÀÚÀÇ catcode´Â 11ÀÌ µÇ¾î ´Ù¸¥ ¹®ÀÚµé°ú ÇÔ²² ¸í·É(ControlSequences)ÀÇ ÀϺηΠ¾²ÀÏ ¼ö ÀÖ´Ù.
         ¹Ý¸é, @¹®ÀÚ¸¦ ¿ø·¡ÀÇ »ç¿ë¹ýÀ¸·Î µÇµ¹·ÁÁÖ·Á¸é CategoryCode¸¦ 12·Î ¼³Á¤ÇØ¾ß ÇÑ´Ù. ÀÌ°ÍÀÌ `\makeatother`ÀÌ´Ù. `letter`³ª `other`´Â catcode 11, 12¸¦ °¢°¢ ÁöĪÇÏ´Â ¸»ÀÌ´Ù.
         \def\makeatletter{\catcode`\@11\relax}
         \def\makeatother{\catcode`\@12\relax}
         \let~\catcode~`76~`A13~`F1~`j00~`P2jdefA71F~`7113jdefPALLF
  • Conditionals . . . . 1 match
         <relation>Àº $>, =, <$ °¡¿îµ¥ ÇϳªÀÌ´Ù.(catcode 12)
  • IsCho . . . . 1 match
          * \def\unobeylines{\catcode`\^^M=5}
  • IsCho/Obsolete . . . . 1 match
          * \def\unobeylines{\catcode`\^^M=5}
  • Karnes-PrivateTmpPage . . . . 1 match
         '''±×·¯³ª''' : °ýÈ£ÀÇ CategoryCode¸¦ ÀÏ°ý º¯È¯ÇÏ´Â °ÍÀº À§ÇèÀÌ ³Ê¹« Å©´Ù. ±×·¯¹Ç·Î, ÀÌ·± »óȲ¿¡¼­ »ç¿ëÀÚ´Â `\sparen` ¸í·ÉÀ» ÀÌ¿ëÇؼ­ °ýÈ£ ¾È¿¡ µé¾î°¥ ¾î±¸¸¦ ÀÌ ¸í·ÉÀÇ ÀÎÀÚ·Î ÁÖ°í, LaTeX¿¡°Ô ÀÌ°ÍÀ» °ýÈ£ ¾ÈÀÇ ÅؽºÆ®·Î ó¸®ÇÏ°Ô ÇÑ´Ù. ¾îÂ÷ÇÇ ÀÌ·² °ÍÀ̶ó¸é catcode¸¦ ¹Ù²ÙÁö ¸»°í ±×´ë·Î ÀÎÀÚ¸¦ °ýÈ£ ¾È¿¡ ½ÄÀÚÇÏ°Ô ÇÏ¸é µÇÁö ¾Ê´Â°¡? ±×·¸Áö¸¸ À̵û±Ý »ç¿ëÀÚ´Â ¹®¼­ Àüü¿¡ ´ëÇÏ¿© °ýÈ£¸¦ ÀÏ°ý µ¿ÀÛÇÏ°Ô ¹Ù²Ù°í ½ÍÀ» ¶§°¡ ÀÖ´Ù. ±×·² °æ¿ì¸¦ ´ëºñÇÏ¿© `\makeparenactive` ¸í·É°ú `\makeparenother` ¸í·ÉÀ» Á¦°øÇÏ¿©, ¹®¼­ Àüü¿¡ ´ëÇÏ¿© °ýÈ£ÀÇ ÀÏ°ý 󸮸¦ °¡´ÉÇÏ°Ô ÇÏ¿´´Ù. ÀÌ ¹æ½ÄÀ» ¾µ ¶§´Â ¿¹ÄÁ´ë ÀåÀý¸í·ÉÀÇ ÀÎÀÚ¿¡ °ýÈ£°¡ ¾ø´ÂÁö, bmsec°ú °°ÀÌ °ýÈ£¸¦ ÀÌ¿ëÇÏ´Â ÆÐÅ°Áö°¡ ½Ç·Á ÀÖÁö´Â ¾ÊÀºÁö »ç¿ëÀÚ ÀÚ½ÅÀÌ ÁÖÀÇÇÏ¿©¾ß ÇÒ °ÍÀÌ´Ù.
  • Karnes/2006-04 . . . . 2 matches
         \catcode`\%=0\let%L\let%L%O%catcode%O`+=1%O`?=2%L%N
  • Karnes/LaTeXTips . . . . 3 matches
         °¡¿îµ«Á¡°ú ÁÙÀÓÇ¥ ÀÔ·ÂÀ» ¿ëÀÌÇÏ°Ô Çϱâ À§ÇÑ Æí¹ýÀ¸·Î `<.`, `<**`¿Í °°Àº ÀԷ¹æ¹ýÀ» ¾²µµ·Ï ÇÑ °ÍÀÌ´Ù. ¿¹»óµÇ´Â ¹®Á¦Á¡Àº `<`ÀÇ catcode¸¦ ¹Ù²Ù´Â ´Ù¸¥ ÆÐÅ°Áö(bigfoot etc)¿ÍÀÇ Ãæµ¹. ±×·² °æ¿ì¿¡´Â »ç¿ëÇÏÁö ¾Ê¾Æ¾ß ÇÑ´Ù. ¼öÇÐ½Ä ³»¿¡¼­ `<`´Â ±×´ë·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
         \catcode`\<=\active
         \catcode`\<=12
  • LaTeXBoxes . . . . 1 match
          \let\do\@makeother\dospecials\catcode`\^^M\active
  • LittleTree/ReadingTeXbook/2006-04 . . . . 76 matches
         \catcode`\^^?=12
         \catcode`\^^?=12
         ¶ó°í ÇØÁà¾î¾ß ÇÕ´Ï´Ù. ±×·¸´Ù¸é ^^ Ç¥±â¹ýÀÌ \char °ú ´Ù¸¥Á¡Àº ¹«¾ùÀϱî¿ä? ±×°ÍÀº ¹Ù·Î '''\catcode`\char127=12''' ´Â Çã¿ëµÇÁö ¾ÊÁö¸¸,
         \def\ttverbatim{\begingroup \catcode`\=\other \catcode`\{=\other
          \catcode`\}=\other \catcode`$=\other \catcode`\&=\other
          \catcode`\#=\other \catcode`\%=\other \catcode`\~=\other
          \catcode`\_=\other \catcode`\^=\other
          \catcode¡®\|=0 \rightskip=-5pc \ttfinish}
         {\catcode¡®\|=0 |catcode¡®|\=\other % | is temporary escape character
         \def\ttverbatim{\begingroup \catcode¡®\=\other \catcode¡®\{=\other
          \catcode¡®\}=\other \catcode¡®$=\other \catcode¡®\&=\other
          \catcode¡®\#=\other \catcode¡®\%=\other \catcode¡®\~=\other
          \catcode¡®\_=\other \catcode¡®\^=\other
          \catcode¡®\|=0 \rightskip=-5pc \ttfinish}
         {\catcode¡®\|=0 |catcode¡®|\=\other % | is temporary escape character
         \def\ttverbatim{\begingroup \catcode¡®\=\other \catcode¡®\{=\other
          \catcode¡®\}=\other \catcode¡®$=\other \catcode¡®\&=\other
          \catcode¡®\#=\other \catcode¡®\%=\other \catcode¡®\~=\other
          \catcode¡®\_=\other \catcode¡®\^=\other
         \def\ttverbatim{\begingroup \catcode`\\=\other \catcode`\{=\other
  • LittleTree/ReadingTeXbook/2006-08 . . . . 9 matches
         \catcode¡®@=11
         \catcode¡®@=12
         ÅØÀÌ »ç¿ëÇÏ´Â 256°³ÀÇ ¹®ÀÚµé °¢°¢Àº \uccode, \lccode¶ó ºÒ¸®´Â µÎ°³ÀÇ °ªÀ» °¡Áö°í ÀÖ½À´Ï´Ù. ±×¸®°í ±× µÎ°³ÀÇ °ªÀº \catcode¿¡ ÀÇÇؼ­ ±× ¹®ÀÚÀÇ catcode°¡ ¹Ù²î´Â °Íó·³ \uppercase ȤÀº \lowercase¿¡ ÀÇÇؼ­ \uccode, \lccodeÀÇ °ªÀ» º¯°æ½Ãų ¼ö ÀÖ½À´Ï´Ù.
         \def\abc{\catcode... \xyz}
         À§ÀÇ ¿¹¿¡¼­ ¾Ë ¼ö ÀÖµíÀÌ argument´Â \catcode¿¡ ÀÇÇؼ­ ¾î¶² catcodeµéÀÌ º¯°æ µÈ ´ÙÀ½¿¡ \xyzÀÇ ÀÎÀÚ·Î »ç¿ëµË´Ï´Ù. À§ÀÇ ¿¹´Â \aftergroupÀ» »ç¿ëÇÏ¸é ´ÙÀ½°ú °°ÀÌ µË´Ï´Ù.
         \def\abc{\catcode... \bgroup\aftergroup\xyz\let\dummy=}
         \bgroupÀ¸·Î ÀÏ´Ü ±×·ìÀÌ ½ÃÀ۵ǰí, \aftergroup¿¡ ÀÇÇؼ­ \xyz°¡ ÀúÀåµË´Ï´Ù. ±×¸®°í \bgroup¿¡ ÀÇÇؼ­ ½ÃÀÛµÈ ±×·ìÀÌ ³¡³­ ´ÙÀ½¿¡ \xyz°¡ »ç¿ëµË´Ï´Ù. Àß »ìÆ캼 °ÍÀº \let¿¡ ÀÇÇؼ­ \abcÀÇ ¿ÞÂÊ °ýÈ£ "{"°¡ Èí¼öµÈ´Ù´Â °ÍÀÔ´Ï´Ù. µû¶ó¼­ \abc°¡ ÇÏ´Â ÀÏÀº ¸ÕÀú catcodeµéÀ» º¯°æ ½ÃÅ°°í, ±×·ìÀ» ½ÃÀÛÇÏ°í, \xyz¸¦ ÀúÀåÇÏ°í "{"¸¦ Èí¼öÇÏ°í ÀÎÀÚµéÀ» ÀÐ¾î µéÀÌ°í ¸¶Áö¸·À¸·Î ±×·ìÀ» ´Ý½À´Ï´Ù. ±×¸®°í ³ª¼­ ¸ÅÅ©·Î \xyz°¡ Àü°³µÇ´Â °ÍÀÔ´Ï´Ù.
  • PrimitiveControlSequences . . . . 1 match
          *[[\catcode]]
  • comment . . . . 4 matches
         \def\SWOFF{\begingroup\catcode`\^^M=12 \xSWOFF}{\catcode`\^^M=12 \gdef\xSWOFF#1^^M{\endgroup}}
         \def\SWOFF{\begingroup\catcode`\^^M=12 \xSWOFF}{\catcode`\^^M=12 \gdef\xSWOFF#1^^M{\endgroup}}
  • ÀÛÀº³ª¹«/2006-06 . . . . 3 matches
         \catcode`\@=13 \def@{\hphantom{0}}
         \catcode`\@=13 \def@{\hphantom{0}}
         \def\per{.}\catcode`\.13 \def.{&}
1352ÀÇ ÆäÀÌÁöÁß¿¡ 13°³°¡ ¹ß°ßµÇ¾ú½À´Ï´Ù

¿©±âÀ» ´­·¯ Á¦¸ñ ã±â¸¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù.


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
Processing time 0.2149 sec